<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table width="100%" id="userTable" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
          <tr>
            <td width="30" height="30" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"  style="background-repeat:repeat-x">S.No</td>
            <td width="90" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x;bgcolor="#FFFFFF"> Part No </td>
            <td width="135" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x;bgcolor="#FFFFFF">Description</td>
            <td width="135" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x;bgcolor="#FFFFFF">Make</td>
            <td width="51" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x;bgcolor="#FFFFFF"> Quantity </td>
            <td width="144" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x;bgcolor="#FFFFFF">Procured Quantity</td>
            <td width="90" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x;bgcolor="#FFFFFF">Sold Quantity</td>
          </tr>
          <c:forEach items="${stock }" var="stock" varStatus="vs">
          <tr>
            <td bgcolor="#FFFFFF">${vs.count }</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">${stock.partNo.prtnum }</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">${stock.description }</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">${stock.partNo.make }</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">${stock.quantity }</td>
            <td align="left" valign="top" bgcolor="#FFFFFF">${stock.procuredQuantity }</td>
           	<td align="left" valign="top" bgcolor="#FFFFFF">${stock.soldQuantity }</td>
          </tr>
          </c:forEach>
        </table>